package com.woniu.postbar.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.common.entity.Result;
import com.woniu.postbar.entity.vo.UserPostVO;
import com.woniu.postbar.pojo.UserPost;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author wu
 * @since 2023-05-20
 */
public interface UserPostMapper extends BaseMapper<UserPost> {

    List<UserPostVO> listAnnouncement(@Param("title") String title);

    boolean addPost(@Param("userPost") UserPost userPost);

    List<UserPost> userTimeCategorize();

    List<UserPost> userCommentCategorize();
}
